# -*- coding: utf-8 -*- 
"""
@Author: 孟颖
@email: 652044581@qq.com
@date: 2023/4/14 15:52
@desc:  O2OA的一些数据处理
"""

class JsonRemover:
    """删除指定列表，json里面的key"""
    def __init__(self, json_data):
        self.json_data = json_data

    def remove_fields(self, fields_to_remove):
        for field in fields_to_remove:
            if field in self.json_data.keys():
                self.json_data.pop(field, None)
        return self.json_data


